<?php
use common\service\StaticService;
use backend\assets\AdminAsset;
use common\service\GlobalUrlService;
use common\service\CommonService;

StaticService::includeAppJsStatic(GlobalUrlService::buildStaticUrl('/backend/complaint/info.js'),AdminAsset::class);

?>
<form class="layui-form">
    <div class="layui-card">
        <div class="layui-card-header">投诉详情</div>
        <div class="layui-card-body">
            <div class="layui-form-item">
                <h2>申请信息</h2>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">店铺名称</label>
                <label class="layui-form-label label-left"><?= $row['shop_name']?></label>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">售后类型</label>
                <label class="layui-form-label label-left"><?= $row['sale_type']?></label>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">货物状态</label>
                <label class="layui-form-label label-left"><?= $row['goods_type']?></label>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">申请原因</label>
                <label class="layui-form-label label-left"><?= $row['reason']?></label>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">问题描述</label>
                <div class="layui-input-block">
                    <textarea  class="layui-textarea" readonly><?= $row['problem_description'] ?></textarea>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">审核备注</label>
                <div class="layui-input-block">
                    <textarea  class="layui-textarea" readonly><?= $row['dismissal'] ?></textarea>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">处理结果</label>
                <div class="layui-input-block">
                    <textarea  class="layui-textarea" readonly><?= $row['result'] ?></textarea>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">处理人</label>
                <label class="layui-form-label label-left"><?= $row['admin_name']?></label>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">联系电话</label>
                <label class="layui-form-label label-left"><?=$row['user_phone']?></label>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">图片</label>
                <div class="layui-inline">
                    <?php foreach ($row['image'] as $pic) :?>
                        <label class="layui-btn layui-btn-primary label-pic label-left">点击放大</label>
                        <div class="onepic label-pic" style="margin-bottom:10px;">
                            <img src="<?=$pic['image']?>" class="complaintpic">
                        </div>
                    <?php endforeach ?>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-inline">
                    <a class="layui-btn layui-btn-primary" onclick="window.history.go(-1);">返回</a>
                </div>
            </div>
        </div>
    </div>
</form>


<style>
    .layui-form-label{width:140px;}
    .layui-input-block {margin-left: 185px;width:50%;}
    .label-pic{margin-left:15px;}
    .label-left{text-align:left;}
    .complaintpic{width:170px;height:170px;}
</style>

<div class="large_pic" style="display:none;">
    <div class="remove">
        <i class="icon-remove xxx"></i>
    </div>
    <div class="img_box">
        <img src="">
    </div>
</div>

